package pers.vic.widget.file;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalTime;

/**
 * @author Vic.xu
 * @description:
 * @date: 2021/3/31 0031 9:37
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@RestController
public class Application {

    public static void main(String[] args) {
        try {
            SpringApplication.run(Application.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @RequestMapping("/")
    public String index() {
        return "welcome to file! " + LocalTime.now();
    }
}
